package com.histone.heartbeat.pojo.resp;

import lombok.Data;

import java.time.Instant;

@Data
public class ImageMessage extends BasicMessage{
    private String MediaId;

    public ImageMessage(){
        super.setMsgType("image");
    }

    public ImageMessage(String fromUserName, String toUserName, String mediaId){

        super.setFromUserName(fromUserName);
        super.setToUserName(toUserName);
        super.setCreateTime(Instant.now().toEpochMilli());
        super.setMsgType("image");

        this.MediaId = mediaId;
    }
}
